package com.jason.learn.apiproject.controller;

import com.jason.learn.apiproject.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    OrderService orderService;

    @GetMapping("/buyOrder")
    public String buyOrder(){
        orderService.action();
        return "success";
    }
}
